I'm getting a TLE for last few test cases

https://ide.codingblocks.com/s/384076 - my code

I’m getting a TLE for last few test cases. How can I optimize this code ?

hello @nidhigupta847
replied in ur previous thread pls check