func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, m, i, j;     string ss;     cin >> n >> m >> ss;     for (i = 0; i < m; i++) {       for (j = 0; j < n; j++) {         if (ss[j] ==  B  && ss[j + 1] ==  G ) {           ss[j] =  G ;           ss[j + 1] =  B ;           j++;         }       }     }     cout << ss << endl;     return 0;   }   