why my code is not passing all the test cases.
Correct it and provide the modified code.
Please don’t suggest other code.
Regarding test case failure
@D19APPPP0016 here it is, your modified correct code https://ide.codingblocks.com/s/232701
I have added the comments with corrections, have a look and ask if you have any other doubt.
If you don’t have any furthur query in it you can mark it as resolved.