Pregunta de entrevista de Xilinx

Graph theory: topological sort based question