Question d’entretien chez HelloFresh

Write an algorithm to reverse a string.