simple and easy C++ solution 😍❤️‍🔥
if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n\nclass Solution {\npublic:\n    int minimumMoves(string s) \n    {\n        int i = 0, ans = 0,
# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n```\nclass Solution {\npublic:\n    int minimumMoves(string s) \n    {\n        int i = 0, ans = 0, n = s.size();\n        while(i < n)\n        {\n            while(s[i]==\'0\') i++;\n            if(s[i]==\'X\') \n            {\n                ans++;\n                i += 3;\n            }\n            else i++;\n        }\n        return ans;\n    }\n};\n```
['String', 'Greedy', 'C++']