Design HashMap builtin hash table librariesimplement MyHashMap classMyHashMap initialize object mapvoid putint key int value insert key value pair HashMap if key exist map update corresponding valueint getint key return value specify key map 1 map contain mapping keyvoid removekey remove key corresponding value map contain mapping key Example 1inputmyhashmap remove 1 1 2 2 1 3 2 1 2 2 2outputnull null null 1 1 null 1 null 1explanationmyhashmap myHashMap new MyHashMapmyHashMapput1 1 the map 11myhashmapput2 2 the map 11 22myhashmapget1 return 1 the map 11 22myhashmapget3 return 1 ie find the map 11 22myhashmapput2 1 the map 11 21 ie update exist valuemyhashmapget2 return 1 the map 11 21myhashmapremove2 remove mapping 2 the map 11myhashmapget2 return 1 ie find the map 11 constraints0 key value 106at 104 call remove