Question d’entretien chez Qualcomm

I vaguely remembered, swapping a binary tree.