Question 1

Question 1: Check Palindrome

Statement:Chef is given a string . If he can convert a string into a palindrome by rearranging the characters, he will keep that string, otherwise he will discard that string. You’ve to tell if Chef will keep that string or not.

Note : A palindrome is a word which reads the same backward or forward

Input Format: The first line of input contains the number of test cases T. Each test case contains a single string S.

Output Format: For each test case print Yes if Chef can convert string into a palindrome by rearranging the characters else print No.

Constraints: 

1<=T<=10

1<=∣S∣<=100

Sample Input:

3

king

noon

abb

Sample output:

No

Yes

No

Solution: