Guavus interview question

Trees and Graph theory