Google interview question

Map and dfs based questions. Leetcode was helpful