Beginners friendly ..!!
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```javascript []\n/**\n * @param {string} s\n * @return {number}\n */\nvar maxPower = function(s) {\n    let max=0;\n    let count =1;\n    for(let i=1;i<s.length;i++){\n        if(s[i] == s[i-1]){\n            count++\n        }\n        else {\n          max =   Math.max(count, max)\n            count=1;\n        }\n    }\n \n    max = Math.max(max,count);\n    console.log(max)\n    return max;\n};\n\n```
['JavaScript']