Pregunta de entrevista de TISCO Bank Public

Write a function to reverse a string.