Pregunta de entrevista de Google

Compare two trees using a depth first search.