The student suggested a creative way to pass the exam