public static void main ( String [ ] args ) {
  Scanner obj = new Scanner ( System . in ) ;
  int T ;
  String t = "" ;
  t = obj . nextLine ( ) ;
  T = Integer . parseInt ( t ) ;
  while ( T > 0 ) {
    String z = obj . nextLine ( ) ;
    int n = Integer . parseInt ( z ) ;
    String s = obj . nextLine ( ) ;
    int i = 0 ;
    int j = s . length ( ) - 1 ;
    while ( i < j && i < s . length ( ) && j < s . length ( ) ) {
      if ( s . charAt ( i ) == s . charAt ( j ) ) {
        i ++ ;
        j -- ;
      }
      else {
        if ( s . charAt ( i ) + 1 == s . charAt ( j ) + 1 || s . charAt ( i ) - 1 == s . charAt ( j ) - 1 || s . charAt ( i ) + 1 == s . charAt ( j ) - 1 || s . charAt ( i ) - 1 == s . charAt ( j ) + 1 ) {
          i ++ ;
          j -- ;
        }
        else i = j + 5 ;
      }
    }
    if ( n % 2 != 0 ) if ( i == j ) System . out . println ( "YES" ) ;
    else System . out . println ( "NO" ) ;
    else if ( i == j + 1 ) System . out . println ( "YES" ) ;
    else System . out . println ( "NO" ) ;
    T -- ;
  }
}

public static void main ( String [ ] args ) { Scanner obj = new Scanner ( System . in ) ; int T ; String t = " " ; t = obj . nextLine ( ) ; T = Integer . parseInt ( t ) ; while ( T > 0 ) { String z = obj . nextLine ( ) ; int n = Integer . parseInt ( z ) ; String s = obj . nextLine ( ) ; int i = 0 ; int j = s . length ( ) - 1 ; while ( i < j && i < s . length ( ) && j < s . length ( ) ) { if ( s . charAt ( i ) == s . charAt ( j ) ) { i ++ ; j -- ; } else { if ( s . charAt ( i ) + 1 == s . charAt ( j ) + 1 || s . charAt ( i ) - 1 == s . charAt ( j ) - 1 || s . charAt ( i ) + 1 == s . charAt ( j ) - 1 || s . charAt ( i ) - 1 == s . charAt ( j ) + 1 ) { i ++ ; j -- ; } else i = j + 5 ; } } if ( n % 2 != 0 ) if ( i == j ) System . out . println ( " YES " ) ; else System . out . println ( " NO " ) ; else if ( i == j + 1 ) System . out . println ( " YES " ) ; else System . out . println ( " NO " ) ; T -- ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (string_literal))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) right: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (update_expression (identifier)))) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal))) right: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))) right: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))) right: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)) right: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal))))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (update_expression (identifier)))) alternative: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))))) (expression_statement (update_expression (identifier)))))))