Leetcode Design Hashmap Python Example