you give integer array num the value array define sum numsi numsi 1 0 numslength 1you allow select subarray give array reverse you perform operation oncefind maximum possible value final array Example 1input num 23154output 10explanation by reverse subarray 315 array 25134 value 10example 2input num 249242110output 68 constraints1 numslength 3 104105 numsi 105