Amazon Interview Question: A BST problem | Glassdoor