TLE in 2 test-cases

i’m getting TLE in 2 test-cases, why?

I have edited your code… try to submit it now…