Minimum Sum Array Leetcode Question