Netflix interview question

Reversal of a String in Java.