People Group interview question

Find the duplicate elements in an array.