Pergunta de entrevista da empresa Google

How does fork() work? code Remove chars at first string from second string.