Mental Model
A HashMap stores key-value pairs by turning keys into numbers to find where to keep values quickly.
Analogy: Imagine a library where each book has a unique code. Instead of searching all books, you use the code to go directly to the shelf and find the book fast.
Buckets array: [0] -> null [1] -> null [2] -> null [3] -> null [4] -> null Each bucket can hold a linked list of key-value pairs.
