C++ Easy Solution
\nclass Solution {\npublic:\n    bool canChange(string start, string target) \n    {\n        int n=start.size();\n        vector<pair<char,int>>v1,v2;\n       
```\nclass Solution {\npublic:\n    bool canChange(string start, string target) \n    {\n        int n=start.size();\n        vector<pair<char,int>>v1,v2;\n        for(int i=0;i<n;i++)\n        {\n            if(start[i]!=\'_\')v1.push_back({start[i],i});\n            if(target[i]!=\'_\')v2.push_back({target[i],i});\n        }\n        if(v1.size()!=v2.size())return false;\n        for(int i=0;i<v1.size();i++)\n        {\n            if(v1[i].first!=v2[i].first)return false;\n            if(v1[i].first==\'L\')\n            {\n                if(v1[i].second<v2[i].second)return false;\n            }else\n            {\n                if(v1[i].second>v2[i].second)return false;\n            }\n        }\n        return true;\n    }\n};\n```
[]