Java solution 0ms 100%
\nclass Solution {\n    public int minimumMoves(String s) {\n        int res=0;\n        for(int i=0;i<s.length();)\n        {\n            if(s.charAt(i)==\'X\
```\nclass Solution {\n    public int minimumMoves(String s) {\n        int res=0;\n        for(int i=0;i<s.length();)\n        {\n            if(s.charAt(i)==\'X\')\n            {\n                i+=3;\n                res++;\n            }\n            else\n                i++;\n        }\n        return res;\n    }\n}\n```
['Java']