Teacher receives 10 months for exam leak