Maximum Subarray In Leetcode Python