Pergunta de entrevista da empresa Google

Generally as anyone bfs, stack, queue