Unable to debug

I think the testcases are incorrect. In case If my code is incorrect, do let me know.