Pregunta de entrevista de Morgan Stanley

Find a pair in the given array with K difference