Pregunta de entrevista de HelloFresh

Write an algorithm to reverse a string.