give integer array num integer k return true distinct index j array numsi numsj absi j k Example 1input num 1231 k 3Output trueExample 2input num 1011 k 1Output trueExample 3input num 123123 k 2output false constraints1 numslength 105109 numsi 1090 k 105