Maximum Subarray Leetcode Python Beginner Problems