Question d’entretien chez Meta

A technical question on sorting an array given an alphabet.