Microsoft Interview Question

Create a function that returns the duplicates in an array