import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;

void main() {
    auto T = readln.chomp.to!int;
    while (T--) solve;
}

void solve() {
    auto N = readln.chomp.to!int;
    auto S = readln.chomp;
    bool ok = true;

    foreach (i; 0..N/2) {
        char x = S[i];
        char y = S[N-i-1];
        if (x != y && abs(x - y) != 2) ok = false;
    }

    writeln(ok ? "YES" : "NO");
}
