


Given 'S' : abcdg
Then output will be : 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The first line of the input contains an integer 'T' denoting the number of test cases.
The first and the only line of each test case contains the string 'S'.
The only line of output of each test case should contain 26 space-separated integers, where the 'i'th integer represents the frequency of the 'i'th character.
You don’t have to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 10^2
1 <= Length of the given string <= 10^4
It is guaranteed that all the characters in the string are lower case english alphabets.
Time Limit : 1 sec
Since there are just 26 lower case characters, we can use an array of size 26 to store the result.
Here is the algorithm :