Tripadvisor interview question

When would you use a hashtable?