Expedia Group Interview Question

How else could you populate the hashmap?