Increasing Subsequences(LeetCode 491):

Problem