A student suggested to her teacher an original way to pass the exam