Topological Sort Algorithm Leetcode