cpp
\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int ret = 0;\n        for (int i=0;i<s.length();i++) {\n            if (s[i]==\'X\') {\n 
```\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int ret = 0;\n        for (int i=0;i<s.length();i++) {\n            if (s[i]==\'X\') {\n                ret++;\n                i+=2;\n            }\n        }\n        return ret;\n    }\n};\n```
[]