MongoDB Interview Question

Internal working of set method in hashmap (which is not there)