Google interview question

to program BFS search in python.