Safeway Interview Question

write an algorithm to reverse an existing string.