525 Contiguous Array Leetcode Solution