Fidelity Investments interview question

Reverse a string in Java.