Question d’entretien chez Amazon

A shifted binary sort question.