func_code_string: #include <bits/stdc++.h>   using namespace std;   signed main() {     ios::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     long long n, t;     cin >> n >> t;     string s;     cin >> s;     while (t--) {       for (long long j = 1; j < n; j++) {         if (s[j - 1] ==  B  && s[j] ==  G ) {           swap(s[j - 1], s[j]);           j++;         }       }     }     cout << s << endl;     ;   }   