func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     string s;     cin >> s;     int n = (int)s.size();     int pos[n + 1];     int st = 1, end = n;     int temp = 1;     for (auto x : s) {       if (st > end) break;       if (x ==  l ) {         pos[end--] = temp++;       } else {         pos[st++] = temp++;       }     }     for (int i = 1; i <= n; i++) {       printf( %d n , pos[i]);     }     return 0;   }   