Amazon Interview Question

How to invert a binary tree