There are a total of numCourses courses labeled from 0 to numCourses - 1. Given an array prerequisites where prerequisites[i] = [a_i, b_i], you must take course b_i first if you want to take course a_i. Return true if you can finish all courses, otherwise return false.
Click Run to execute sample tests.