Amadeus interview question

cs related concepts