Sum Of Subarray Minimums Leetcode Sql