Persistent Systems Interview Question

Java code to print the reverse string