UKG interview question

Reverse a string in Java.