Easy C++ || Count approach O(N)
\nclass Solution {\npublic:\n    bool winnerOfGame(string colors) {\n        int a=0;\n        int b=0;\n        for(int i=1;i<colors.size();i++){\n            
```\nclass Solution {\npublic:\n    bool winnerOfGame(string colors) {\n        int a=0;\n        int b=0;\n        for(int i=1;i<colors.size();i++){\n            if(colors[i-1]==colors[i] && colors[i+1]==colors[i]){\n                if(colors[i]==\'A\')\n                    a++;\n                else\n                    b++;\n            }\n        }\n            \n        return a>b;\n    }\n};\n```
['C', 'C++']