Pergunta de entrevista da empresa Deliveroo

Simple Hashmap dictionary question to maintain the counts