1136. Parallel Courses
Given `n` courses labeled from `1` to `n` and an array of prerequisite pairs `relations` where `relations[i] = [prevCourse, nextCourse]` indicates that `prevCourse` must be taken before `nextCourse`.
Given `n` courses labeled from `1` to `n` and an array of prerequisite pairs `relations` where `relations[i] = [prevCourse, nextCourse]` indicates that `prevCourse` must be taken before `nextCourse`.