c++(0ms 100%) simple, easy, small
Runtime: 0 ms, faster than 100.00% of C++ online submissions for Minimum Moves to Convert String.\nMemory Usage: 6.5 MB, less than 80.00% of C++ online submissi
Runtime: 0 ms, faster than 100.00% of C++ online submissions for Minimum Moves to Convert String.\nMemory Usage: 6.5 MB, less than 80.00% of C++ online submissions for Minimum Moves to Convert String.\n```\nclass Solution {\npublic:\n  int minimumMoves(string s) {\n    int i = 0, ans = 0, n = s.size();\n    \n    while(i < s.size())\n      if(s[i] == \'O\') i++;\n      else i += 3, ans++; \n      \n    return ans;\n  }\n};\n```
['C', 'C++']