Google interview question

How to reverse a tree