Course Schedule (Detecting Cycles in a Graph) - Leetcode 207 - Graphs (Python)