Maximum Subarray Problem Leetcode Python Questions