C++ Easy Solution
\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        //if you find a \'X\' change the next 3 char to \'O\' and calculate the result\n        i
```\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        //if you find a \'X\' change the next 3 char to \'O\' and calculate the result\n        int res=0;\n        int n=s.length();\n        for(int i=0;i<n;i++)\n        {\n            if(s[i]==\'X\')\n            {\n                res++;\n                s[i]=\'O\';\n                if(i+1<n && s[i+1]==\'X\')\n                {\n                    s[i+1]=\'O\';\n                }\n                if(i+2<n && s[i+2]==\'X\')\n                {\n                    s[i+2]=\'O\';\n                }\n                    \n            }\n        }\n        return res;\n    }\n};\n```\n**Upvote if this helps you :)**
['C']