Urbanpro interview question

Reverse a string in java.