2 test case (0 and 1) are failing


This is my solution. Can you please tell me why the 2 test cases are getting fail.

updated and added comments check this should work