Pregunta de entrevista de IXL Learning

A basic OOD design / coding question