Amadeus interview question

Design Pattern,