func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(0);     cin.tie(NULL);     cout.tie(NULL);     ;     long long t;     cin >> t;     while (t--) {       long long n, m;       cin >> n >> m;       string s;       cin >> s;       vector<long long> p(m), arr(26, 0);       vector<long long> ans(n, 0);       for (int i = 0; i < int(m); i++) {         cin >> p[i];         ++ans[p[i] - 1];       }       for (long long i = n - 1; i > 0; --i) ans[i - 1] += ans[i];       for (int i = 0; i < int(n); i++) {         arr[s[i] -  a ] += ans[i] + 1;       }       for (int i = 0; i < int(26); i++) cout << arr[i] <<    ;       cout <<   n ;     }     return 0;   }   