Pergunta de entrevista da empresa Arm

Write an algorithm that inverts a binary tree.