max_sum to the first element of nums (since a single element is an ascending subarray).current_sum to the same value.current_sum.max_sum with the maximum of max_sum and current_sum, then reset current_sum to the current element.max_sum one last time to account for the last ascending subarray.max_sum.