<p>Given an integer array <code>nums</code> and an integer <code>k</code>, return <code>true</code><em>if there are two <strong>distinct indices</strong></em><code>i</code><em> and </em><code>j</code><em> in the array such that </em><code>nums[i] == nums[j]</code><em> and </em><code>abs(i - j) <= k</code>.</p>