Why does the Two Sum algorithm add the current element to the Map only after checking needed?
needed
O(n)