Amadeus interview question

basic c++ questions