Pergunta de entrevista da empresa Microsoft

Given a circular singly linked list of integers, write a function to remove all the duplicate integers and sort it so that when the contents of the circular list get printed, all even numbers get printed first.