Two pointer approach hint


#1

REARRANGE TO A[i] = A[j] + k
THEN THINK ABOUT TWO POINTERS APPROACH