Question d’entretien chez Safeway

write an algorithm to reverse an existing string.