One test case passed but 3 failed

What is the error in my code?

Hello @yobasu2015,

There are few mistakes in your code.
I have corrected them:

Let me know if you still face any issue.
Give a like if you are satisfied.