Pregunta de entrevista de Safeway

write an algorithm to reverse an existing string.