Find two indices where values sum to target using a HashMap for O(n) time. Explain why this beats O(n²) brute force.
Examples