Question d’entretien chez LPL Financial

Asked to reverse a string