give array integer num choose different index j array return maximum value numsi1numsj1 example 1input num 3452output 12 Explanation if choose index i1 j2 index 0 maximum value nums11nums21 4151 34 12 Example 2input num 1545output 16explanation choosing index i1 j3 index 0 maximum value 5151 16example 3input num 37output 12 constraints2 numslength 5001 numsi 103