Google Interview Question

Write a recursive DFS