using dictionary and pass oj

loop only once, and register the numbers if cannot sum up to the target
in the dictionary. return indexes if “two sum”.