#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 0x3f3f3f3f;
const int MAXN = 200010;
int tc, n;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> tc;
  while (tc--) {
    cin >> n;
    if (n < 4) {
      cout << -1 << endl;
      continue;
    }
    vector<int> ans;
    for (int i = n % 2 == 1 ? n : n - 1; i > 0; i -= 2) ans.push_back(i);
    ans.push_back(4);
    ans.push_back(2);
    for (int i = 6; i <= n; i += 2) ans.push_back(i);
    for (int i = 0; i < (int)ans.size(); i++)
      if (i == 0)
        cout << ans[i];
      else
        cout << " " << ans[i];
    cout << endl;
  }
  return 0;
}
