

If N=5 and given string S is “rtoor”, the string can be rearranged as “rotor,” which is palindromic.
The first line of the input contains an integer, 'T,’ denoting the number of test cases.
The first line of each test case contains a single integer, 'N’, denoting the length of the given string.
The second line contains the given string ‘S’.
For each test case, print ‘YES’ if the string can be rearranged into a palindromic string, else print ‘NO’.
Print the output of each test case in a separate line.
You do not need to print anything. It has already been taken care of. Just implement the given function.
1 <= T <= 10
1 <= N <= 10^6.
S consists of only lowercase alphabets.
Time limit: 1 sec
In this approach, we will iterate through the whole string and store the frequency of each character. As we know, a palindromic string can have at most one character with an odd frequency. So, we will count the number of characters with odd frequencies, and if the count is greater than 1, the palindromic rearrangement is impossible. Else, palindromic rearrangement is possible.