Pregunta de entrevista de CitiusTech

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