Simple C++ greedy approach
\n    int minimumMoves(string s) {\n        int count = 0;\n        int i = 0 ;\n        while(i<s.size()){\n            if(s[i]==\'X\'){\n                count
```\n    int minimumMoves(string s) {\n        int count = 0;\n        int i = 0 ;\n        while(i<s.size()){\n            if(s[i]==\'X\'){\n                count++;\n                i+=3;\n            }\n            else{\n                i++;\n            }\n        }\n        return count;    \n    }\n```
['Greedy', 'C']