Question d’entretien chez Bloomberg

question from Leetcode (train schedule ...)