Xilinx Interview Question

Graph theory: topological sort based question