Question d’entretien chez Affirm

Basic binary tree question, average complexity.