Question d’entretien chez Qualcomm

Coding question related to trees