Innoveo interview question

Remove duplicates from a list (JEE, JUnit)