Given an array and integer k, return True if there are two distinct indices i and j such that nums[i] == nums[j] and abs(i - j) <= k.
1,2,3,1 3
True
[1, 2, 3, 1]
k