Question d’entretien chez Bloomberg

Algorithm question- Invert a Binary tree