The answer to that is not something we can help you with because, if you don't know, it is something you need to ask the people who set the problem. Once you know how duplicates are to be treated we can help you if you are still having difficulties coding a solution. We can't write the spec for you!