Arcadia.io interview question

OOP code test in Python