UST interview question

To write a Java program on reversing a string.