js greedy
```\nvar minimumMoves = function(s) {\n    let i = 0;\n    res = 0;\n    while (i < s.length) {\n        if (s[i] === \'X\') {\n            s[i] = \'O\';\n     
```\nvar minimumMoves = function(s) {\n    let i = 0;\n    res = 0;\n    while (i < s.length) {\n        if (s[i] === \'X\') {\n            s[i] = \'O\';\n            s[i + 1] = \'O\';\n            s[i + 2] = \'O\';\n            i += 3;\n            res += 1;\n        } else {\n            i++;\n        }\n    }\n    return res;\n};
['Greedy']