EPAM Systems interview question

Write code for printing duplicate numbers in a list.