Expedia Group interview question

Design patterns