Pregunta de entrevista de Amazon

Graph Question - Variations on Course Schedule on Leetcode