Safeway interview question

write an algorithm to reverse an existing string.