Pergunta de entrevista da empresa Jane Street

leetcode medium involving dictionaries and loops