Maximum Subarray Problem Leetcode Python Coding