Maximum Subarray Problem Leetcode Python Beginner