Question d’entretien chez Cognizant

Write a program to print duplicate words from array?