Genpact Interview Question

Basic java coding (to print string in reverse)