give array positive integer num return maximum possible sum ascend subarray numsA subarray define contiguous sequence number arrayA subarray numsl numsl1 numsr1 numsr ascend l r numsi numsi1 note subarray size 1 ascend Example 1input num 10203051050output 65explanation 51050 ascend subarray maximum sum 65Example 2input num 1020304050output 150explanation 1020304050 ascend subarray maximum sum 150example 3input num 12171513101112output 33explanation 101112 ascend subarray maximum sum 33 Constraints1 numslength 1001 numsi 100