The first line of each test case contains two integers n and m (1≤n,m≤50) — the length of the sequence a and the length of the string s respectively.
The second line contains n integers a1,a2,…,an (1≤ai≤m) — the sequence a.
2
4 5
1 1 3 1
1 5
2
ABABA
BABBB
In the first test case, the sequence a=[1,1,3,1]. One of the possible solutions is the following.