#include using namespace std; int A[200010],ans; int main(){ int t,n; cin>>t; while(t--){ cin>>n; for(int i=1;i<=n;i++){ cin>>A[i]; } for(int i=1;i