Java 0ms 100% faster
class Solution {\n\n    public int minimumMoves(String s){\n        \n        int step = 0;\n        \n        \n        for(int i = 0; i < s.length(); i++){\n 
class Solution {\n\n    public int minimumMoves(String s){\n        \n        int step = 0;\n        \n        \n        for(int i = 0; i < s.length(); i++){\n            if(s.charAt(i) == \'X\'){\n                step++;\n                i+=2;\n            }\n        }\n        \n        return step;\n    }\n}
[]