Contiguous Array Leetcode Solution 125