C++||Easy to Understand
```\nclass Solution {\npublic:\n    int minimumMoves(string s)\n    {\n        int ans=0;\n        for(int i=0;i<s.size();i++)\n        {\n            if(s[i]==
```\nclass Solution {\npublic:\n    int minimumMoves(string s)\n    {\n        int ans=0;\n        for(int i=0;i<s.size();i++)\n        {\n            if(s[i]==\'X\')\n            {\n                ans++;\n                i=i+2;\n            }\n        }\n        return ans;\n        \n    }\n};\n//if you find the solution useful plz upvote.
['C']