Amazon Interview Question

Code a BST, then reverse it