Maximum Ascending Subarray Sum Leetcode Contest Solution