Amadeus interview question

Questions on Java and C++ basically.