Unable to clear all testcases


What is wrong with my code?

Hey @goyalvivek try for input
11
44166181111
Expected output is: 4
Yours is giving is: 2

why should the answer be 4?

only 44166181 and 11 are CB no

No, cb numbers in this will be
41
61
11
11

what changes should i make in my code?

Check this one


All your doubts will be cleared.

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.