1Count Problem Giving wrong on testcase 4

My solution giving wrong on 4th test case what’s wrong in my code

link to my code : https://ide.codingblocks.com/s/212239

@sanidhyasamadhiya
You answer for this case is wrong
Q : 1 0
0
A : 0
0

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.