Subarray Question On Leetcode Problems