Pregunta de entrevista de Amphisoft Technologies

Accept an array containing 5 elements where 2 elements are repeated.Display the repeated element.