O(N) python
```\ndef winnerOfGame(self, colors: str) -> bool:\n        alice=0\n        bob =0\n        for i in range(1,len(colors)-1):\n            if colors[i]=="A":\n  
```\ndef winnerOfGame(self, colors: str) -> bool:\n        alice=0\n        bob =0\n        for i in range(1,len(colors)-1):\n            if colors[i]=="A":\n                if colors[i-1]=="A" and colors[i+1]=="A":\n                    alice+=1\n            else:\n                if colors[i-1]=="B" and colors[i+1]=="B":\n                    bob+=1\n        return alice>bob
[]