Xilinx interview question

Graph theory: topological sort based question