Bloomberg interview question

Algorithm question- Invert a Binary tree