Pregunta de entrevista de LinkedIn

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