Vanta Interview Question

not on leetcode, but similar to topo sort