Mental Model
We want to find two numbers that add up to a target by remembering numbers we've seen before for quick lookup.
Analogy: Imagine shopping with a list of prices and a budget. You check each price and ask: 'Have I seen a price that pairs with this to reach my budget?' If yes, you found your pair.
nums: [2, 7, 11, 15]
hash: {}
ā current index at 0