Subarray Question On Leetcode 1501