Subarray Question On Leetcode 150 Problem