Pregunta de entrevista de PayBox (Israel)

Can you write a function to reverse a string?