Count > 2
C++\ncpp\nbool winnerOfGame(string colors) {\n    int a = 0, b = 0, cnt_a = 0, cnt_b = 0;\n    for (auto ch : colors) {\n        if (ch == \'A\') {\n           
**C++**\n```cpp\nbool winnerOfGame(string colors) {\n    int a = 0, b = 0, cnt_a = 0, cnt_b = 0;\n    for (auto ch : colors) {\n        if (ch == \'A\') {\n            if (++cnt_a > 2)\n                ++a;\n            cnt_b = 0;\n        } else {\n            if (++cnt_b > 2)\n                ++b;\n            cnt_a = 0;\n        }\n    }\n    return a > b;\n}\n```
[]