Let me try to make sense of this.
So this individual who finished the exam in one hour wasn't allowed to leave, where this verbal confrontation ensued between him and the teacher. Then, for some enigmatic reason, your teacher had a divine coercion to tell you and your friend to leave before...