Beats 100% (C++)
\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int c=0;\n        for(int i=0; i<s.length(); i++)\n        {\n            if(s[i]==\'X\')
```\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int c=0;\n        for(int i=0; i<s.length(); i++)\n        {\n            if(s[i]==\'X\')\n            {\n                c++;\n                s[i]=\'O\';\n                if(i+1<s.length())\n                s[i+1]=\'O\';\n                if(i+2<s.length())\n                s[i+2]=\'O\';\n            }\n        }\n        return c;\n    }\n};\n```
['C']