Pregunta de entrevista de Google

Generally as anyone bfs, stack, queue