Vanta interview question

Leetcode style question that involved topological sorting