Question d’entretien chez Optiver

Tree-related question with recursion