Question d’entretien chez Google

DSA problem based on graphs