Maximum Good Subarray Sum In Leetcode Premium