Question d’entretien chez Microsoft

Q: Given a String, replace certain elements in the string with emoticons.