Question d’entretien chez Thales

The first problem: Reverse a string.