Directi interview question

DFS, BFS, DP, Binary Search, Trees