Microsoft interview question

Implement to insert (put) function for a hashmap