Amadeus interview question

Asked about design pattern.