Maximum Subarray In Leetcode Solutions Python