C++ easiest solution!
\nclass Solution {\npublic:\n    bool winnerOfGame(string colors) {\n        \n        int n=colors.size();\n        if(n<=2) return false;\n\t\t\n        int a
```\nclass Solution {\npublic:\n    bool winnerOfGame(string colors) {\n        \n        int n=colors.size();\n        if(n<=2) return false;\n\t\t\n        int a=0;\n        int b=0;\n        \n        for(int i=1;i<n-1;++i)\n        {\n            if(colors[i]==\'A\' and colors[i-1]==\'A\' and colors[i+1]==\'A\') a++;\n            if(colors[i]==\'B\' and colors[i-1]==\'B\' and colors[i+1]==\'B\') b++;\n        }\n        return a>b;\n        \n    }\n};\n```
['C', 'C++']