Read a lowercase word and determine whether it reads the same forwards and backwards.
Input / Output
Input: a single lowercase word. Output: "Yes" if it's a palindrome, "No" otherwise.
Examples
Input
racecar
Expected Output
Yes
Input
hello
Expected Output
No
+ 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.