Morgan Stanley interview question

Reverse a string