Amadeus interview question

Questions involving algorithmic solutions.