Exam Day : TLE

I don’t understand why this simple code is giving TLE.
Any helps would be appreciated.

Even if there is some minor(or major :P) fault in the logic, it should at max give a WA I suppose?
Thanks! :slight_smile: