SICPA interview question

Reverse a string