Apollo.io interview question

DSA problems were based on DFS and stacks