Leetcode Maximum Good Subarray Sums Python Snake Information