Amazon interview question

How to invert a binary tree