Microsoft Interview Question

2 problem solving questions and that's it. one with hash map and the second with a dfs