100% Faster Very SImple o(N)
\nclass Solution(object):\n    def minimumMoves(self, s):\n        """\n        :type s: str\n        :rtype: int\n        """\n        count = 0\n        i = 0
```\nclass Solution(object):\n    def minimumMoves(self, s):\n        """\n        :type s: str\n        :rtype: int\n        """\n        count = 0\n        i = 0\n        \n        while i < len(s):\n            if s[i] == \'O\':\n                i+=1\n            else:\n                count+=1\n                i+=3\n        return count \n                \n        \n```
['Python']