Please check the code it is failing one tc

Hey @sneha23
refer to comments https://ide.codingblocks.com/s/407251