Infosys Interview Question

Java program to reverse string