Question d’entretien chez Buckhill

Algorithm question, can't remember which one