Wish interview question

Graph question that involved BFS