class Solution {
public:
    string solve(string str) {
        // write code here
        string arr=str;
        int n=arr.size();
        for(int i=0;i<n;i++){
            arr[i]=str[n-i-1];
        }
        return arr;
    }
};