Leetcode Maximum Good Subarray Sums Python Interview Coding Question