Subarray Questions On Leetcode Sql