Pergunta de entrevista da empresa Fastly

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