Expedia Group interview question

Some questions were difficult