Continuous Subarrays Leetcode Solution