Getting TLE, please explain?

here is my code

@namangarg31