Java : Simple
\nclass Solution {\n    public int minimumMoves(String s) \n    {\n        int moves = 0;\n        int i=0;\n        \n        while(i<s.length())\n        {\n 
```\nclass Solution {\n    public int minimumMoves(String s) \n    {\n        int moves = 0;\n        int i=0;\n        \n        while(i<s.length())\n        {\n            if(s.charAt(i)==\'X\')\n            {\n                i+=3;\n                moves++;\n            }else\n            {\n                i++;\n            }\n            \n        }      \n        \n        return moves;\n        \n    }\n}\n```
['Java']