Pls check the code it is giving tle
Hey @sneha23
Mentioned the changes in comments : https://ide.codingblocks.com/s/369960
If this resolves your query then please mark it as resolved 
Hey @sneha23
Mentioned the changes in comments : https://ide.codingblocks.com/s/369960
If this resolves your query then please mark it as resolved 