C++ | 3-lines code | Faster than 100%
\n    int minimumMoves(string s) {\n        int ans = 0;\n        \n        for(int i=0; i<s.size(); i++)\n            if(s[i] == \'X\'){\n                ans++
```\n    int minimumMoves(string s) {\n        int ans = 0;\n        \n        for(int i=0; i<s.size(); i++)\n            if(s[i] == \'X\'){\n                ans++;\n                i += 2;\n            } \n        return ans;\n    }\n```
['C', 'C++']