func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     char s[105];     cin >> s;     vector<int> a;     string ans =   ;     int j, ct = 0;     for (int i = 0; i <= n - 1;) {       if (s[i] ==  o  && s[i + 1] ==  g  && s[i + 2] ==  o  && i <= n - 3) {         ct = 0;         for (j = i + 3; j < n - 1;) {           if (s[j] ==  g  && s[j + 1] ==  o ) {             ct = 1;             j = j + 2;             i = j;           } else {             i = j;             break;           }         }         i = j;         if (ct == 1) {           ans +=  *** ;         } else {           ans +=  *** ;         }       } else {         ans += s[i];         i++;       }     }     cout << ans << endl;   }   