Put keys into a hash table with linear probing when slots collide: 18 levels of collisions, probing and load factor. 18 levels, right in the browser.
A hash table keeps each key in one cubby worked out from the key itself, so finding it needs no look through every cubby. In the textbook the function is hash(k) = k mod N: the remainder of the key divided by the number of cubbies. Mbak Retno's shelf has 7 cubbies, so the letter for house k goes in cubby k mod 7. This is the textbook model, not what Java or Python use. The next levels show the difference.
A search in linear probing walks from cubby k mod 7 until it finds the letter, or until an empty cubby: an empty cubby means the letter is not there. So a letter taken out must never leave a plain empty cubby. Mbak Retno puts a card (a tombstone) there. A search steps over the card and goes on; a new letter may go in the first carded cubby it meets.
The courier's app is written in Java and keeps its deliveries in java.util.HashMap. That is a real hash table, and it differs from the textbook: The keys are text. String.hashCode() works out a 32 bit number from the letters. The hash is mixed. hash = h ^ (h >>> 16): the top 16 bits are XORed into the bottom 16. A power of two shelf. The cubby is hash & (n - 1); with 16 cubbies that is the last hex digit of the hash. A collision hangs. A letter whose cubby is taken is hung at the end of that cubby's chain instead of getting another cubby.
HashMap keeps threshold = capacity times 0.75. As soon as it holds more than that, resize() makes a shelf twice as big and moves every letter. The move is not random. From a shelf of n to one of 2n, a letter in cubby j moves to j or j + n, and one bit alone decides: hash & n. Each chain is split in two, its order kept.
The JavaScript specification does not say how a Map stores its keys. What it promises: the keys come out in insertion order, and finding one is on average faster than checking them all. The specification describes it as a list of records. A set of a new key adds a record at the end; a set of an old key replaces its value in place; a delete empties its record, and the list is never reordered.
A CPython 3.12 dict writes its keys in an entries book, line by line in insertion order, and uses slots (an index table, 8 at first) that hold only line numbers. A key's first slot is hash(k) & 7. If it is taken, CPython works out perturb = perturb >> 5 and then i = (i*5 + perturb + 1) & 7, with perturb starting as the hash itself. For an integer hash(k) is k. Text is different: hash("Rara") changes every time Python starts (PYTHONHASHSEED), so that nobody can prepare thousands of keys that collide on purpose and slow a server down. That is why the Python levels here use house numbers.
And more, 18 levels in all.