FactSet Interview Question

write an algorithm to reverse a string.