Why is this code giving TLE?
Hello, I wanted to know why the this submission was giving TLE. Thanks :)