nums and a distance k, return true if the same integer appears at two different indices that are at most k apart. Return false otherwise.nums and a distance k, return true if the same integer appears at two different indices that are at most k apart. Return false otherwise.// Run your code to see the output here.