Amazon interview question

Leetcode questions like 225 topological sort.