Pergunta de entrevista da empresa DreamBox Learning

Given this TreeNode implementation, invert the tree