LinkedIn interview question

Invert a binary tree .