func_code_string: #include <bits/stdc++.h>   using namespace std;   auto fastio = (ios::sync_with_stdio(false), cin.tie(nullptr));   void solve() {     long long n, m;     cin >> n >> m;     string s;     cin >> s;     vector<long long> p(m);     for (long long i = 0; i < (m); ++i) {       cin >> p[i];     }     sort((p).begin(), (p).end());     vector<long long> cnt(27);     long long ptr = 0;     for (long long i = 0; i < (n); ++i) {       while (i == p[ptr]) {         m--;         ptr++;       }       cnt[s[i] -  a ] += (m ? m + 1 : 1);     }     for (long long i = 0; i < (26); ++i) {       if (i) {         cout <<    ;       }       cout << cnt[i];     }     cout <<   n ;   }   int32_t main() {     long long tt;     cin >> tt;     while (tt--) {       solve();     }     return 0;   }   