My Simple C++ and Java Solution
// C++ my simple solution\n \n\tclass Solution {\n\tpublic:\n\t\tint minimumMoves(string s) {\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i < s.size(); i++){\n\
// C++ my simple solution\n \n\tclass Solution {\n\tpublic:\n\t\tint minimumMoves(string s) {\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i < s.size(); i++){\n\t\t\t\tif(s[i] != \'O\'){\n\t\t\t\t\tcount++;\n\t\t\t\t\ti+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn count;\n\t\t}\n\t};\n\t\n\n// java solution\n\n\tclass Solution {\n\t\tpublic int minimumMoves(String s) {\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tif(s.charAt(i) != \'O\'){\n\t\t\t\t\tcount++;\n\t\t\t\t\ti+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn count;\n\t\t}\n\t}
['C', 'Java']