/* * Author: asharusmani * Created: Thursday, 17.04.2025 10:05 AM (GMT+5:30) * * ? If the world was ending, I'd wanna be next to you ? * ? If the party was over and our time on Earth was through ? * ? I'd wanna hold you just for a while... and die with a smile ? */ #include "bits/stdc++.h" using namespace std; #define ll long long #define nl endl #define double long double #define pb push_back #define forn(i,a,n) for(int i=a;i #define vb vector #define vvi vector> #define vd vector #define vs vector #define vll vector #define fastnuces ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);int t = 1; void solve(){ int n; cin>>n; string s; cin>>s; vi perm(n); forn(i,0,n)cin>>perm[i]; string ans(n,' '); forn(i,0,n)ans[i]=s[perm[i]-1]; cout<> t; while (t--) { solve(); } return 0; }