Very easily understandable
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    bool winnerOfGame(string colors) {\n        int i=1,n=colors.size();\n        int a=0,b=0;\n        if(colors.size()<=2) return false;\n        while(i<n)\n        {\n            if(colors[i+1]==\'A\' && colors[i]==\'A\' && colors[i-1]==\'A\')\n            a+=1;\n            if(colors[i+1]==\'B\' && colors[i]==\'B\' && colors[i-1]==\'B\')\n            b+=1;\n        i++;\n        }return a>b;\n    }\n};\n```
['C++']