func_code_string: #include <bits/stdc++.h>   using namespace std;   string s;   int main() {     ios_base::sync_with_stdio(0);     cin >> s;     vector<int> a;     vector<int> b;     int n = s.size();     for (int i = 0; i < n; i++) {       if (s[i] ==  l ) a.push_back(i + 1);       if (s[i] ==  r ) b.push_back(i + 1);     }     for (int i = 0; i < b.size(); i++) cout << b[i] <<   n ;     for (int i = a.size() - 1; i >= 0; i--) cout << a[i] <<   n ;     return 0;   }   