Amadeus interview question

Basic Data structures