Pregunta de entrevista de smallcase

difference in tree and graph