using hash to solve TwoSum in O(N)