java easy solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```java []\nclass Solution {\n    public boolean canChange(String start, String target) {\n        int i=0;\n        int j=0;\n        int n=start.length();\n        while(i<n || j<n){\n            while(i<n && start.charAt(i)==\'_\')i++;\n            while(j<n && target.charAt(j)==\'_\')j++;\n            if(i==n || j==n) break;\n            if(start.charAt(i) !=target.charAt(j)) return false;\n            if (start.charAt(i) == \'L\' && i < j)\n                return false;\n            if (start.charAt(i) == \'R\' && i > j)\n                return false;\n            i++;\n            j++;\n        }\n       if(i==n && j==n) return true;\n       return false;\n    }\n}\n```
['Java']