Addepar interview question

Write DFS