func_code_string: #include <bits/stdc++.h>   using namespace std;   void solve() {     int n, i;     cin >> n;     int a[n], b[n + 1];     for (i = 0; i < n; i++) {       cin >> a[i];       b[a[i]] = i;     }     int l, r, ans[n + 1];     l = b[1];     r = b[1];     for (i = 2; i <= n; i++) {       l = min(l, b[i]);       r = max(r, b[i]);       if ((r - l + 1) != i)         ans[i] = 0;       else         ans[i] = 1;     }     cout << 1;     for (i = 2; i <= n; i++) cout << ans[i];     cout << endl;   }   int main() {     int t;     cin >> t;     while (t--) {       solve();     }     return 0;   }   