Java Simple & Easy Approach
\nclass Solution {\n    public boolean winnerOfGame(String colors) {\n        \n        int len=colors.length();\n        \n        int acount=0;\n        int b
```\nclass Solution {\n    public boolean winnerOfGame(String colors) {\n        \n        int len=colors.length();\n        \n        int acount=0;\n        int bcount=0;\n        \n        for(int i=1;i<len-1;i++){\n            if(colors.charAt(i-1)==colors.charAt(i) && colors.charAt(i+1)==colors.charAt(i) )\n            {\n                if(colors.charAt(i)==\'A\')\n                    acount++;\n                else\n                    bcount++;\n            }\n        }\n        \n        return acount>bcount;\n    }\n}\n```
['Java']