Maveric Systems Interview Question

Java code for reverse string.