Question d’entretien chez Yandex

Check if a tree is binary.