The student suggested her own way of passing the exam, straight from a steamy classroom encounter