Pregunta de entrevista de ADDO AI

Write an algorithm to reverse a string.