Pergunta de entrevista da empresa Brain Station-23

time complexity of bfs,dfs algorithm