Solution : Remove Colored Pieces if Both Neighbors are the Same Color
```class Solution {\n    public boolean winnerOfGame(String c) {\n        int a = 0;\n        int b = 0; \n        for(int i = 1; i <= c.length() - 2; i++){\n  
```class Solution {\n    public boolean winnerOfGame(String c) {\n        int a = 0;\n        int b = 0; \n        for(int i = 1; i <= c.length() - 2; i++){\n            if((c.charAt(i) == c.charAt(i-1)) && (c.charAt(i) == c.charAt(i+1))){\n                if(c.charAt(i) == \'A\') {\n                    a++;\n                } else {\n                    b++;\n                }\n            }\n        }\n        if(a>b) return true;\n        return false;\n    }\n}
['Math', 'Java']