J.P. Morgan Interview Question

How to reverse a tree