Meta Interview Question

BFS Tree algorithm question, graph question