FactSet interview question

Reverse a string