


The first line of input contains an integer T, denoting the number of test cases.
The first line of each test case contains a string 'S'.
For each test case, print a single line containing “YES” or “NO” depending on whether the string 'S' is the same as its reflection in the mirror or not.
The output of each test case is printed in a separate line.
You do not need to print anything, it has already been taken care of. Just implement the function.
The return type of the function is boolean, which returns true if the string is the same as its reflection in the mirror, otherwise returns false.
1 <= T <=10
1 <= Length(S) <= 10 ^ 5
Where ‘T’ is the number of test cases, ‘S’ is the string given in input.
Time limit: 1sec.
For a string to be same as its reflection in the mirror, it should satisfy the following conditions: