Morgan Stanley interview question

Reverse A String