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