Expedia Group Interview Question

The answer given was a possible solution. The answer the interviewer wanted involved Reflection.