Domanda di colloquio di CitiusTech

How to get duplicate elements in int array, the most sufficient way