Pergunta de entrevista da empresa TISCO Bank Public

Write a function to reverse a string.