Maximum Subarray Leetcode Problem 754 Election