you give array positive integer num want erase subarray contain unique element the score erase subarray equal sum elementsreturn maximum score erase exactly subarrayAn array b call subarray form contiguous subsequence equal alal1ar lr Example 1input num 42456output 17explanation the optimal subarray 2456example 2input num 521252125output 8explanation the optimal subarray 521 125 Constraints1 numslength 1051 numsi 104