Optym Interview Question

Find all the duplicates elements in an array?