PS Interview Question

Code to invert a tree