#include <bits/stdc++.h>
int main() {
  int t, c, m, b, l;
  scanf("%d", &t);
  for (int i = 0; i < t; i++) {
    c = 0;
    scanf("%d", &l);
    char s[l];
    scanf("%s", s);
    int n = l / 2;
    for (int j = 0; j < n; j++) {
      m = s[j];
      b = s[l - 1 - j];
      if (m == b || m - 1 == b + 1 || m + 1 == b - 1) {
        c = c + 1;
      }
    }
    if (c == n) {
      printf("YES\n");
    } else {
      printf("NO\n");
    }
  }
  return 0;
}
