Question d’entretien chez BlackRock

Write a function that reverses a string.