func_code_string: #include <bits/stdc++.h>   using namespace std;   int t, n, m, har[27];   string s;   int sum[200005][27];   int main() {     cin >> t;     while (t--) {       cin >> n >> m;       cin >> s;       for (int i = 0; i <= 25; i++) har[i] = 0;       for (int i = 0; i < n; i++) {         for (int j = 0; j < 26; j++) sum[i][j] = 0;       }       for (int i = 0; i < n; i++) {         if (i != 0) {           for (int j = 0; j <= 25; j++) {             sum[i][j] = sum[i - 1][j];           }         }         sum[i][s[i] -  a ]++;       }       int l = 0;       for (int i = 0; i < m; i++) {         cin >> l;         for (int j = 0; j < 26; j++) {           har[j] += sum[l - 1][j];         }       }       for (int j = 0; j < 26; j++) {         har[j] += sum[n - 1][j];       }       for (int i = 0; i < 26; i++) {         cout << har[i] <<    ;       }       cout << endl;     }   }   