You are given an integer array `nums` and two integers `indexDiff` and `valueDiff`.
Find a pair of indices `(i, j)` such that:
- `i != j`,
- `abs(i - j) <= indexDiff`,
- `abs(nums[i] - nums[j]) <= valueDiff`.
Return `true` if such a pair exists, otherwise return `false`.
Cut the number line into buckets of width valueDiff + 1 = 1. Two values in the same bucket are always within 0, so each bucket can hold at most one value before we have an answer.