Getting tle in one case

I’m getting tle in test case 4, what is problem with above code?

@Tejas123
There is some issue with the testcase. I have raised the concern to the problem setter. Will let you know once resolved.