Edit Distance - Wrong Answer

I am failing some testcases.

Can you tell me which case you’re facing a wrong answer at. I don’t find any error in your code.

Only 0&1 are passed, rest 4 test cases failed.

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.

Wait, when did you clear the doubt?
I told you I’m failing test cases from 2-5