Domanda di colloquio di Interactive Brokers

python coding question based on hashmap