JavaScript Greedy
\n/**\n * @param {string} s\n * @return {number}\n */\nvar minimumMoves = function(s) {\n    const len = s.length\n    let result = 0\n    \n    \n    for (let 
```\n/**\n * @param {string} s\n * @return {number}\n */\nvar minimumMoves = function(s) {\n    const len = s.length\n    let result = 0\n    \n    \n    for (let i = 0; i < len; ) {\n        const ch = s[i]\n        if (ch === \'O\') i++\n        else {\n            result++\n            i += 3\n        }\n    }\n    \n    \n    return result\n};\n```
[]