Spokeo Interview Question

Hashtable vs an array, when to use each