Java Easy Efficient Fastest Solution
\nclass Solution {\n    public int minimumMoves(String s) \n    {\n        int moves = 0;\n        int i=0;\n        \n        while(i<s.length()){\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            if(s.charAt(i)==\'X\'){\n                i+=3;\n                moves++;\n            }else\n                i++;\n        }      \n        return moves;\n    }\n}\n```\nPlease **UPVOTE** if you find this solution helpful.\nThanks : )
['Java']