Runtime: 0 ms, faster than 100.00% of C++ online submissions
\n\tclass Solution {\n\tpublic:\n\t\tint minimumMoves(string s) {\n\t\t\tint n = s.size();\n\t\t\tint ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tif(s[i] == 
\n\tclass Solution {\n\tpublic:\n\t\tint minimumMoves(string s) {\n\t\t\tint n = s.size();\n\t\t\tint ans = 0;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tif(s[i] == \'X\'){\n\t\t\t\t\tans++;\n\t\t\t\t\ti+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn ans;\n\t\t}\n\t};
[]