func_code_string: #include <bits/stdc++.h>   using namespace std;   const int maxn = 2e5 + 10;   int ar[maxn], num[maxn];   int main() {     int t;     cin >> t;     while (t--) {       int n, m;       memset(num, 0, sizeof(num));       memset(ar, 0, sizeof(ar));       cin >> n >> m;       string s;       cin >> s;       for (int i = 1; i <= m; i++) {         int x;         cin >> x;         x--;         ar[x]++;       }       int len = s.length();       for (int i = 0; i < len; i++) {         num[s[i] - 97]++;       }       for (int i = len - 1; i >= 0; i--) {         ar[i] += ar[i + 1];         num[s[i] - 97] += ar[i];       }       for (int i = 0; i < 26; i++) {         if (i < 25)           cout << num[i] <<    ;         else           cout << num[i] << endl;       }     }   }   