Tektronix interview question

when do you choose hashmap in your program