TikTok Interview Question

Common Topo Sort graph problems with variation