Why all test cases are getting falied when I am getting all required outputs?

@shubhirajput21 Consider input:
3 4
1 2 3 4
1 2 3 4
1 2 3 4

Your Output:
1, 1, 1, 0, 2, 2, 2, 3, 3, 3, 0, 4, 4, 4, END

Check where you are going wrong.

it is not considering my score and still marked as undone question

If all test cases are passing and you have not unlocked the testcases/editorial then the question should get marked. If still it is not getting marked, try to resubmit the same code after sometime.

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.