Pergunta de entrevista da empresa Optiver

A harder leetcode style problem about graphs