Pregunta de entrevista de Buildium

simple OOP exercise and logical algorithm