Teacher gets 10 months for exam leak