Amazon Interview Question

Reverse a tree in any coding language