Two Sigma interview question

DP, design db, bfs, dfs