Maximum Subarray Problem Leetcode Python Practice