C++ || EASY SOLUTION
\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int count=0;\n        for(int i=0;i<s.size()-2;i++)\n        {\n            if(s[i]==\'X\
```\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int count=0;\n        for(int i=0;i<s.size()-2;i++)\n        {\n            if(s[i]==\'X\')\n            {\n                count++;\n                s[i]=\'O\';\n                s[i+1]=\'O\';\n                s[i+2]=\'O\';\n            }\n        }\n        if(s[s.size()-1]==\'X\' || s[s.size()-2]==\'X\')\n            count++;\n        return count;\n    }\n};\n```
[]