Visa Inc. Interview Question

binary search tree and two-pointer question