Addepar Interview Question

Write DFS