func_code_string: #include <bits/stdc++.h>   using namespace std;   const long long MOD = 1e9 + 7;   const long long INF = 1e18;   const long double PI = acos((long double)-1);   const int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};   void setIO(string name =   ) {     ios_base::sync_with_stdio(0);     cin.tie(0);     if ((int)(name).size()) {       freopen((name +  .in ).c_str(),  r , stdin);       freopen((name +  .out ).c_str(),  w , stdout);     }   }   int main() {     setIO();     int t;     cin >> t;     while (t--) {       int n;       cin >> n;       int arr[n];       for (int i = (0); i < (n); i++) cin >> arr[i];       int last = 1;       int cnt = 0, prev = 1, c = 0;       for (int i = (1); i < (n - 1); i++) {         if (arr[i] > arr[i + 1]) {           cnt++;         }         c++;         if (cnt >= prev) {           last++;           prev = c;           c = 0;           cnt = 0;         }       }       cout << last <<   n ;     }   }   