Search across blog, articles, projects, courses, and community posts
A palindrome reads the same forwards and backwards. Read one word and print YES if it is a palindrome, otherwise NO.
Input: one line of lowercase letters.
Output: YES or NO.
The word has 1 to 1000 lowercase letters (a to z).
racecar
YES
hello
NO