Finding cb numbers ,one test case giving runtime error

@aryanv hey aryan I have submitted you code there is two cases where you code is failing
14
23574414416111
run time error but output is 8
11
44166181111
run time error but output is 4

@jaiskid sir i cant figure why it is giving runtime error .

ok i figured it out , ty.