Maximum Subarray Leetcode Python Beginner Practice