Question d’entretien chez Micro Focus

Solve a binary tree exercise.