#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int MOD = 1e9 + 7;
void solve(){
int n;
cin >> n;
vector<int> a(n);
for(int i = 0; i < n; i++)cin >> a[i];
for(int i = 1; i < n; i++){
if(a[i] == a[i - 1]){
cout << a[i - 2] << "\n";
cout << i << "\n";
cout << a[i] << " " << a[i - 1] << "\n";
cout << -1 << "\n";
return;
}
if(i > 1){
if(a[i] >= a[i - 1] && a[i - 1] >= a[i - 2]){
cout << a[i] << " " << a[i - 1] << " " << a[i - 2] << "\n";
cout << -1 << "\n";
return;
}
if(a[i] <= a[i - 1] && a[i - 1] <= a[i - 2]){
cout << a[i] << " " << a[i - 1] << " " << a[i - 2] << "\n";
cout << -1 << "\n";
return;
}
}
}
cout << 1 << "\n";
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int t = 1;
cin >> t;
for(int i = 1; i <= t; i++){
solve();
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiNkZWZpbmUgbGwgbG9uZyBsb25nCgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY29uc3QgaW50IE1PRCA9IDFlOSArIDc7Cgp2b2lkIHNvbHZlKCl7CgkKCWludCBuOwoJY2luID4+IG47Cgl2ZWN0b3I8aW50PiBhKG4pOwoJCglmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKWNpbiA+PiBhW2ldOwoJCglmb3IoaW50IGkgPSAxOyBpIDwgbjsgaSsrKXsKCQlpZihhW2ldID09IGFbaSAtIDFdKXsKCQkJY291dCAgPDwgYVtpIC0gMl0gPDwgIlxuIjsKCQkJY291dCA8PCBpIDw8ICJcbiI7CgkJCWNvdXQgPDwgYVtpXSA8PCAiICIgPDwgYVtpIC0gMV0gPDwgIlxuIjsKCQkJY291dCA8PCAtMSA8PCAiXG4iOwoJCQlyZXR1cm47CgkJfQoJCWlmKGkgPiAxKXsKCQkJaWYoYVtpXSA+PSBhW2kgLSAxXSAmJiBhW2kgLSAxXSA+PSBhW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 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 100 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 101 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 102 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 103 104 ...