ServiceNow interview question

Implement a put() for a hashmap in Java