Amazon Interview Question

BST traversal and problems on trees