Sum Of All Subarrays Leetcode Solutions With Explanation