Confirm my code

Help me understand where my code is wrong that my all test cases failed.