Pergunta de entrevista da empresa Trip.com Group

In what case should we use Hashmap and why?