Domanda di colloquio di Safeway

write an algorithm to reverse an existing string.