Maximum Subarray Min Product Leetcode Problems Sql