HelloFresh interview question

Write an algorithm to reverse a string.