Sum Of Subarray Minimums Leetcode Sql Server