Failing in 2 test cases

https://ide.codingblocks.com/s/203038.
Please tell where I am going wrong.

Pls resolve my query

I have edited your code… Try to submit it now…

Yes got it. Thanks a lot