solution 2 to sumTwo, hashmap