Sum Of Subarray Ranges Leetcode Solutions Java