Comcast Interview Question

Replace a word in a string with another substring