Easy Python Solution | Faster than 99% (24 ms)
Easy Python Solution | Faster than 99% (24 ms)\nRuntime: 24 ms, faster than 99% of Python3 online submissions for Minimum Moves to Convert String.\nMemory Usage
# Easy Python Solution | Faster than 99% (24 ms)\n**Runtime: 24 ms, faster than 99% of Python3 online submissions for Minimum Moves to Convert String.\nMemory Usage: 14.2 MB.**\n\n```\nclass Solution:\n    def minimumMoves(self, s: str) -> int:\n        i, m = 0, 0\n        l = len(s)\n\n        while i < l:\n            if s[i] != \'X\':\n                i += 1\n            elif \'X\' not in s[i:i+1]:\n                i += 2\n            elif \'X\' in s[i:i+2]:\n                m += 1\n                i += 3\n        return m\n```
['Python', 'Python3']