Amdocs interview question

hashmap put method ,coding question