No errors found in the code

I have tried dry running the code and checked with custom input. I am getting correct answers but all the test cases are shown to have failed. Can you go through my code and help me find my error?

hi @astha119btcse21_7380491a239a3b9b,
write count>=k not ==

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.