Domanda di colloquio di Amazon

Coding questions were asked regarding topological sorting