class Solution { public: int maxPower(string s) { int res=0,l=0,i=0; for (; i