Question d’entretien chez Meta

Leetcode medium which can be solved with hashmaps or dictionaries