Sanket and strings can you give an idea to think what test case in this problem are not passing please

can you give an idea to think what test cases in this problem are not passing by my code

hi @mvarun975_a7021058d653891d u need to find max length of substring (that is continuous part) fo eg
2
abbaaaaaaaaabbbbbbbbbbbbb
ans is 15 last all b and 2 continuous a before that (dont count prev 2 b) your ans is 17 as u r adding those also
please refer https://www.youtube.com/watch?v=KbV6SQ6sD6Q

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.