Question d’entretien chez Aurora Innovation

Data structure question, had to be solved in python.