Kakashi and words

0

0 votes
Easy
Problem

Kakashi has just finshed a novel and feeling bored. In order to pass time, he has thought of doing something interesting. He'll pick a random word from the novel and check if it is a palindrome or not. He has asked you to confirm if the given word is a palindrome or not.

Input Format--

First line contains t, number of test cases.

Each test case will contains a string s, the given word.

String s will only contain alphabets from 'a' to 'z'.

Output Format--

For each case, output "YES" if given word is a palindrome, else "NO".

Constraints--

1t100

1len(s)105

Sample Input
2
hello
level
Sample Output
NO
YES
Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

For first case, "hello" is not a palindrome.

For second case, "level" is a palindrome.

Editor Image

?