Pregunta de entrevista de Micro Focus

Solve a binary tree exercise.