Maximum Subarray Leetcode Practice Python