Pergunta de entrevista da empresa Spinny

Something about inverting a binary tree.