Amadeus interview question

C++ Polytmorphism and some debugging