Brain Station-23 Interview Question

time complexity of bfs,dfs algorithm