Virtusa Interview Question

write a Java code in order to reverse a word