Apple interview question

I was asked to invert a binary tree.