func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int i, j, k, n, m, t, l;     cin >> t;     while (t--) {       string s, p, q =  abacaba , r;       cin >> n >> s;       int cnt = 0, cntt = 0;       p = s;       r = s;       for (i = 0; i < n; i++) {         int c = 0;         for (j = i, k = 0; j < i + 7 && j < n; j++) {           if (q[k] == s[j]) {             k++;             c++;           } else {             k = 0;             break;           }         }         if (c == 7) cnt++;         if (s[i] ==  ? ) cntt++;       }       if (cnt > 1)         cout <<  No  << endl;       else if (cntt == 0 && cnt == 0)         cout <<  No  << endl;       else {         int ans = 0;         if (cnt == 0) {           for (i = 0; i + 6 < n; i++) {             bool f = 1;             s = p;             for (j = 0; j < i; j++) {               if (s[j] ==  ? ) s[j] =  x ;             }             for (j = 0; j < 7; j++) {               if (s[j + i] != q[j] && s[j + i] !=  ? ) {                 f = 0;                 break;               } else if (s[j + i] ==  ? )                 s[j + i] = q[j];             }             if (f == 0) continue;             int con = 0;             if (f == 1) {               for (l = 0; l + 6 < n; l++) {                 int ok = 1;                 for (j = 0; j < 7; j++) {                   if (s[j + l] != q[j]) {                     ok = 0;                     break;                   }                 }                 con += ok;               }               if (con == 1) {                 cout <<  Yes  << endl;                 for (i = 0; i < n; i++)                   if (s[i] ==  ? ) s[i] =  x ;                 cout << s << endl;                 ans = 1;                 break;               } else                 continue;             }           }           if (ans == 0) cout <<  No  << endl;         } else if (cnt == 1) {           for (i = 0; i < n; i++) {             if (s[i] ==  ? ) s[i] =  x ;           }           cout <<  Yes  << endl;           cout << s << endl;         } else           cout <<  No  << endl;       }     }     return 0;   }   