Second question: How would you check if a graph is connected or not · InterviewLane