Max Subarray Sum Problem Leetcode Python Questions