Maximum Good Subarray Sum Leetcode 150