Pregunta de entrevista de Meta

Leetcode medium which can be solved with hashmaps or dictionaries