Goldman Sachs interview question

k-diff pairs in an array