TikTok interview question

How does a hash table work?