EAI Technologies interview question

How to reverse a string