Silicon Valley Bank Interview Question

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