Google Interview Question

Asked about BFS told me to write pseudo code