Spokeo interview question

Hashtable vs an array, when to use each