Pergunta de entrevista da empresa Meta

Leetcode medium which can be solved with hashmaps or dictionaries