Domanda di colloquio di Curriculum Associates

Given an array, get all of duplicate elements in the array.