Pergunta de entrevista da empresa Xilinx

Graph theory: topological sort based question