Subarray Problems On Leetcode Contest