Question d’entretien chez Google

Interval question and a DFS question