Maximum Subarray Min Product Leetcode Sql