A palindrome is a word that reads the same backward as forward, e.g., madam. If you start comparing the letters from the beginning with the corresponding letters from the end, they would be the same.
Given a set of words, you have to find if they are palindrome or not.
First line contains an integer T denoting the number of words to check.
Next T lines contain a word each without any special characters.
T lines, each denoting if the corresponding word is a palindrome.
"True" if the word is a palindrome and "False" if it is not.
2
refer
roar
True
False
0 < T <= 100
0 < length of word <= 10000