Pergunta de entrevista da empresa Microsoft

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