Leetcode Design Hashmap Leetcode Python