you give integer array num integer kFor index 0 numslength change numsi numsi k numsi kThe score num difference maximum minimum element numsreturn minimum score num change value index Example 1input num 1 k 0output 0explanation the score maxnums minnum 1 1 0example 2input num 010 k 2output 6explanation Change num 2 8 the score maxnums minnum 8 2 6example 3input num 136 k 3output 3explanation Change num 4 6 3 the score maxnums minnum 6 3 3 constraints1 numslength 1040 numsi 1040 k 104