Maveric Systems interview question

Java code for reverse string.