4 test cases failing

Getting a run error in 4 of the test cases.

@mansi_sharma9kF
refer to this corrected code

can you tell me what exactly was wrong with my code? I found it to be pretty similar to yours.