Please tell me the mistake

where my code fails??

Pls send your code by saving on ide so that I could check it…

https://ide.codingblocks.com/s/239681 . This sol is accepted on leetcode but not here