Another Easy Medium 

Convert prerequisite array into a directed graph,
use DFS to find if prerequisite,
cache the queries.
#Problemsolved 

Felt like a breeze after yesterday's #potd .

#DSA #LeetCode #ProblemOfTheDay #ProblemSolving