Genpact interview question

Basic java coding (to print string in reverse)