Aspire Systems Interview Question

To print the duplicate in an array.