as simple as possible
```\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int cnt=0;\n        int n=s.size();\n        int i=0;\n        while(i<n){\n          
```\nclass Solution {\npublic:\n    int minimumMoves(string s) {\n        int cnt=0;\n        int n=s.size();\n        int i=0;\n        while(i<n){\n            if(s[i]==\'O\'){\n                i++;\n            }else{\n                cnt++;i+=3;\n            }\n        }\n        return cnt;\n    }\n};
[]