Leetcode Maximum Good Subarray Sums Ii