Python Solution
```\n def minimumMoves(self, s: str) -> int:\n        count = 0\n        i = 0\n        while i < len(s):\n            if s[i] == \'X\':\n                count 
```\n def minimumMoves(self, s: str) -> int:\n        count = 0\n        i = 0\n        while i < len(s):\n            if s[i] == \'X\':\n                count += 1\n                i += 3\n            elif s.count("X") == 0:\n                break\n            else:\n                i += 1\n        return count
['Python']