Question d’entretien chez Lyft

Was not expecting graph theory question