Pergunta de entrevista da empresa Aspect Ratio

Flip the left and right nodes in a given tree optimal solution