Pergunta de entrevista da empresa Amazon

Given a set of unique integers except one, that has at least a duplicate, create a function to identify which integer has the duplicate entry