Very Very Easy Java Solution
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 {\n    public boolean winnerOfGame(String colors) {\n        int countA=0;\n        int countB=0;\n        for(int i=1;i<colors.length()-1;i++){\n            if(colors.charAt(i)==\'A\'&&colors.charAt(i+1)==\'A\'&&colors.charAt(i-1)==\'A\')\n            countA++;\n            if(colors.charAt(i)==\'B\'&&colors.charAt(i+1)==\'B\'&&colors.charAt(i-1)==\'B\')\n            countB++;\n        }\n        if(countA>countB)\n        return true;\n        return false;\n    }\n}\n```
['Java']