Question d’entretien chez LinkedIn

Object and array - answer is to use hashmap. Similar to two sum