O(n) - easy
\nclass Solution {\n    public int minimumMoves(String s) {\n        int m = 0;\n        for(int i = 0; i < s.length(); ++i) if(s.charAt(i) == \'X\') { i+=2; m+
```\nclass Solution {\n    public int minimumMoves(String s) {\n        int m = 0;\n        for(int i = 0; i < s.length(); ++i) if(s.charAt(i) == \'X\') { i+=2; m++;}\n        return m;\n    }\n}\n```
['Java']