Expedia Group interview question

How else could you populate the hashmap?