EAI Technologies interview question

Reversing a string