BlackBerry interview question

Reverse string