Pergunta de entrevista da empresa One New Zealand

question related to graph algorithm