Boats Group interview question

Reverse String in Java.