you give integer array value valuesi represent value ith sightseeing spot two sightseeing spot j distance j themthe score pair j sightseeing spot valuesi valuesj j sum value sightseeing spot minus distance themreturn maximum score pair sightseeing spot Example 1input value 81526output 11explanation 0 j 2 valuesi valuesj j 8 5 0 2 11example 2input value 12output 2 constraints2 valueslength 5 1041 valuesi 1000