Teradata Interview Question

topological sort - leetcode medium