Two Sigma Interview Question

DP, design db, bfs, dfs