Amdocs Interview Question

hashmap put method ,coding question