Maximum Subarray Leetcode Python Beginner