Maximum Sum Increasing Subsequence

Given an integer array nums, return the maximum sum of a strictly increasing subsequence. A subsequence keeps the original order but may skip elements; a strictly increasing subsequence requires each chosen element to be greater than the previous chosen element. The subsequence must be non-empty.

Examples
Input: [1,2,4,3]
Output: 7
Hints

Maximum Sum Increasing Subsequence

Given an integer array `nums`, return the maximum sum of a strictly increasing subsequence. A subsequence keeps the original order but may skip elements; a strictly increasing subsequence requires each chosen element to be greater than the previous chosen element. The subsequence must be non-empty.