Amazon Interview Question

BFS and DFS and time and space complexity