Viasat Interview Question

How to get the duplicate elements from a list of numbers