American Express interview question

OOP concepts