Expedia Group Interview Question

Design pattern