DreamBox Learning interview question

Given this TreeNode implementation, invert the tree