Sum Of Variable Length Subarrays Leetcode 150