Frage im Vorstellungsgespräch bei Huawei Technologies

How would you Design Hashmap class and Stack in Java?