Maximum Subarray Min Product Leetcode Sql Queries W3schools