#include <bits/stdc++.h>   using namespace std;   int main() {     int t, n, sumaP, sumaI, ultimo, primero;     cin >> t;     while (t--) {       cin >> n;       if (n % 4 != 0)         cout <<  NO  << endl;       else {         sumaP = (n / 2) * (n / 2 + 1);         sumaI = (n / 2 - 1) * (n / 2 - 1);         ultimo = sumaP - sumaI;         cout <<  YES  << endl;         primero = 2;         for (int i = 0; i < n / 2; i++) {           cout << primero <<    ;           primero += 2;         }         primero = 1;         for (int i = n / 2; i < n - 1; i++) {           cout << primero <<    ;           primero += 2;         }         cout << ultimo << endl;       }     }     return 0;   }   