Pergunta de entrevista da empresa Nuclei

Graph question based on dfs, shortest path algo