Question d’entretien chez NVIDIA

Given a string input, write a function that reverses it.