Pregunta de entrevista de Fastly

insert a string y into the target string x whenever a specific pattern z is found in the target string