Question d’entretien chez Amazon

binary expression tree part is tricky for me