Question d’entretien chez Virtusa

Write a program to print duplicates in a string