C++: Easy to understand, Faster than 100%
\nint minimumMoves(string s) {\n        int res = 0;\n        int it=0;\n        while(it<s.length()){\n            if(s[it] == \'X\'){\n                res++; 
```\nint minimumMoves(string s) {\n        int res = 0;\n        int it=0;\n        while(it<s.length()){\n            if(s[it] == \'X\'){\n                res++;       // if \'X\' is encountered, increment result by 1 and move iterator ahead by 3 \n                it+=3;\n            }\n            else{it++;}     // else increment iterator by 1\n        }\n        return res;\n    }\n```
['String', 'C']