Sum Of Subarray Maximums Leetcode Solutions C