Rosetta Problems

Sum of Subarray Minimums

https://leetcode.com/problems/sum-of-subarray-minimums