add an hashmap;use map to find two int equal to and int