Pergunta de entrevista da empresa Palo Alto Networks

A hard leetcode question which included graph theory and topological sorting to solve. First pseudo code and then real time programming to validate the solution works.