American Express interview question

Standard question to Invert Binary tree