Calian interview question

Python OOP, finish implementing the given method