TLE and Wrong Ans?

Why I am getting wrong ans in one TC and TLE in another ?

Naman, plz send your code by saving on ide so that I could check it

I have turned on the collaboration mode. Can’t u see my code ?

No, plz send on ide only,