LinkedIn Interview Question

Two sum Problem and check if it is a BST