Domanda di colloquio di Amazon

Please write a java code that print duplicates of an array.