Replace ? in string fromed by a,b,c,?.DFS