InterviewDB Question

K-diff Pairs