Pregunta de entrevista de Amazon

OOP Design coding question and walking interviewer through it