Increasing Array Leetcode Question