Domanda di colloquio di Microsoft

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