Pregunta de entrevista de Microsoft

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