Pergunta de entrevista da empresa Databricks

graph question - traversal and hashmap and optimzation