Read a word and print it reversed.
Input / Output
Input: a single word (no spaces). Output: the word, reversed.
Examples
Input
hello
Expected Output
olleh
Input
IEB
Expected Output
BEI
+ 2 hidden tests checked on Submit.
Main.java is the entry point. Add extra classes for OOP exercises — they compile together.
Run your code to see test results here.