Pregunta de entrevista de Vanta

Leetcode style question that involved topological sorting