Comcast interview question

Replace a word in a string with another substring