Google interview question

Generally as anyone bfs, stack, queue