Maximum Subarray Problem Leetcode Contest Answers