Question d’entretien chez Amazon

How would you reverse a string?