Morgan Stanley Interview Question

Find a pair in the given array with K difference