Amadeus interview question

OOPS concepts