Question d’entretien chez ADDO AI

Write an algorithm to reverse a string.