Easy C++ Solution
class Solution {\npublic:\n    int maxPower(string s) {\n        int count=1; \n        int max=1; \n        char a=s[0];\n        for(int i=1;imax){\n         
class Solution {\npublic:\n    int maxPower(string s) {\n        int count=1; \n        int max=1; \n        char a=s[0];\n        for(int i=1;i<s.length();i++){\n            if(s[i]==a){\n                count++;\n                if(count>max){\n                    max=count; \n                }\n            }\n           else{\n               a=s[i];\n               count=1; \n                \n            }\n            \n                \n            \n            \n        }\n        return max;\n    }\n};
['String']