Maximum Subarray Leetcode Python Problems