JPMorganChase Interview Question

When would you use a hashmap?