Leetcode Maximum Good Subarray Sum Ii