Short Java, O(n), 7 lines
Walk to the first X, jump three position to the right, walk to the next X, jump... Count the number of jumps.\n```java\n public int minimumMoves(String s) {\n  
Walk to the first X, jump three position to the right, walk to the next X, jump... Count the number of jumps.\n```java\n public int minimumMoves(String s) {\n        int r = 0;\n        for (int i = 0; i < s.length(); i++)\n            if (s.charAt(i) == \'X\') {\n                r++;\n                i += 2;\n            }\n        return r;\n    }
[]