func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int n, t;     cin >> n >> t;     string s;     cin >> s;     char temp;     while (t--) {       for (int i = 0; i < n - 1; i++) {         if (s[i] != s[i + 1] && s[i] ==  B ) {           temp = s[i + 1];           s[i + 1] = s[i];           s[i] = temp;           i++;         }       }     }     cout << s;     return 0;   }   