hashmap,棒棒哒 after looking the discussion, using hashmap to solve two sum in Java