Yahoo interview question

Reverse string