Google Interview Question

question similar to leetcode problem- course scheduling based on topological sorting.