Capgemini Interview Question

To print reverse string in java