[ C++ ] Easy
```\nint minimumMoves(string s) {\n        int ans=0;\n        for(int i=0; i<s.size(); i++)\n        {\n            if(s[i] == \'X\')\n            {\n         
```\nint minimumMoves(string s) {\n        int ans=0;\n        for(int i=0; i<s.size(); i++)\n        {\n            if(s[i] == \'X\')\n            {\n                if(i+1<s.size())\n                    s[i+1]=\'O\';\n                if(i+2<s.size())\n                    s[i+2]=\'O\';\n                s[i]=\'O\';\n                ans++;\n            }\n        }\n        return ans;\n    }
[]