SImple Python solution using an additional array
\narr=[1]*len(s)\nfor i in range(1,len(s)):\n\tif s[i]==s[i-1]:\n\t\tarr[i]=arr[i-1]+1\nreturn max(arr) \n
```\narr=[1]*len(s)\nfor i in range(1,len(s)):\n\tif s[i]==s[i-1]:\n\t\tarr[i]=arr[i-1]+1\nreturn max(arr) \n```
[]