Meta Interview Question

2 questions about graph, not difficult