Expedia Group interview question

Basic stuff