ServiceNow Interview Question

Implement a put() for a hashmap in Java