Snap Interview Question

I had to write some code using hash functions, review an intentionally flawed code looking 8 mistake.