TikTok Interview Question

How does a hash table work?