Question d’entretien chez Blue Monocle Software

Q: How do you print duplicate characters from a string?