The first line contains the number of test cases T. Each test case takes two lines. The first line contains an integer N. The second line contains the N different passwords P1,P2,…,PN, separated by spaces. Every password consists of uppercase English letters only.
Limits
- 1≤T≤100
- 1≤N≤26
- 1≤∣Pi∣≤26
- Pi=Pj for i=j
- A single password may repeat a letter.