#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,d,n;
cin >> a;
while (a--)
{
cin >> n;
if (n%2 == 0)
{
cout << -1 << '\n';
}
else
{
while (n--)
{
cout << n+1 << ' ';
}
cout << '\n';
}
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCBhLGIsYyxkLG47CgljaW4gPj4gYTsKCXdoaWxlIChhLS0pCgl7CgkJY2luID4+IG47CgkJaWYgKG4lMiA9PSAwKQoJCXsKCQkJY291dCA8PCAtMSA8PCAnXG4nOwoJCX0KCQllbHNlCgkJewoJCQl3aGlsZSAobi0tKQoJCQl7CgkJCQljb3V0IDw8IG4rMSA8PCAnICc7CgkJCX0KCQkJY291dCA8PCAnXG4nOwoJCX0KCX0KfQ==