Epic interview question

Graph questions and some recursion