easy c++ solution
\nclass Solution {\npublic:\n    int maxPower(string s) {\n       int count=0;\n        int maxcount=0;\n        for(int i=0;i<s.size()-1;i++)\n        {\n     
```\nclass Solution {\npublic:\n    int maxPower(string s) {\n       int count=0;\n        int maxcount=0;\n        for(int i=0;i<s.size()-1;i++)\n        {\n            if(s[i+1]==s[i])\n                count++;\n            else\n                count=0;\n            maxcount=max(maxcount,count);\n         }\n        return maxcount+1;\n    }\n};\n```
['String', 'C']