Maximum Subarray Problem Leetcode Python Examples