Capital One interview question

CodeSignal hard - Variation on k-diff pairs (LeetCode 532)