Maximum Good Subarray Sum Leetcode Contest Answers