Amazon interview question

BST traversal and problems on trees