Dfs Graph Questions Leetcode