Pergunta de entrevista da empresa Silicon Valley Bank

Write a method to print duplicate integers in an array of integers.