#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n < 4) {
      cout << -1 << endl;
      continue;
    }
    list<int> ans({2, 4, 1, 3});
    for (int i = 5; i <= n; i++) {
      if (i % 2)
        ans.push_back(i);
      else
        ans.push_front(i);
    }
    for (auto it : ans) cout << it << " ";
    cout << endl;
  }
}
