Added solution to "contest" problem