Question d’entretien chez Cognizant

To print the duplicate elements in a given string?