Continuous Subarrays Leetcode Solution 9