Java Solution
\nclass Solution {\n    public int minimumMoves(String s) {\n        int index = 0;\n        int result = 0;\n        \n        while (index < s.length()) {\n  
```\nclass Solution {\n    public int minimumMoves(String s) {\n        int index = 0;\n        int result = 0;\n        \n        while (index < s.length()) {\n            if (s.charAt(index) == \'X\') {\n                index = index + 2;\n                result++;\n            }\n            index++;\n        }\n        \n        return result;\n    }\n}\n```
['Java']