Pls check it is not passing last two cases

Hy @sneha23
Mentioned the changes in comments : https://ide.codingblocks.com/s/367917 :slight_smile:
If this resolves ur query then please mark it as resolved :slight_smile: