2 test case pass nehi ho raha

Hello @sroy3166,

There is a small mistake in your code.
I have corrected it:

Refer to comments for better understanding.

Hope, this would help.
Give a like if you are satisfied.