Pregunta de entrevista de Amazon Web Services

Write a pseudocode or algorithm to reverse a given string.