Pocket Gems interview question

implement a BST and find two nodes matchs