Rosetta Problems

Sum of Subarray Ranges

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