two-sum second solution hashmap