Morgan Stanley interview question

Find a pair in the given array with K difference