Maximum Subarray Leetcode Python Beginner Exercises