#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, i;
    cin >> n;
    if (n < 4) {
      cout << -1 << endl;
      continue;
    }
    for (i = n; i > 0; i--) {
      if (i % 2 != 0) cout << i << ' ';
    }
    cout << 4 << ' ' << 2 << ' ';
    for (i = 6; i <= n; i = i + 2) cout << i << ' ';
    cout << endl;
  }
}
