Teacher creates cheeky exam question to find cheaters and catches 14 students