The teacher approved the student's action as a unique way to pass the exam