Leetcode Maximum Good Subarray Sums Python W3schools