func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     int t;     cin >> t;     while (t--) {       int n;       int m;       cin >> n >> m;       int arr[n];       for (int i = 0; i < n; i++) {         cin >> arr[i];       }       map<int, int> freq;       freq.clear();       for (int i = 0; i < m; i++) {         int curr;         cin >> curr;         freq[curr]++;       }       for (int i = 0; i < n; i++) {         for (int j = 0; j < n; j++)           if (arr[j] > arr[j + 1] && freq[j + 1]) {             swap(arr[j], arr[j + 1]);           }       }       bool possible = true;       for (int i = 0; i < n - 1; i++) {         if (arr[i] > arr[i + 1]) {           possible = false;           break;         }       }       if (possible) {         cout <<  YES  << endl;       } else {         cout <<  NO  << endl;       }     }     return 0;   }   