Pergunta de entrevista da empresa Fast Enterprises

Write a function on how to reverse a string?