Question d’entretien chez Morgan Stanley

Find a pair in the given array with K difference