Intact interview question

Python object-oriented programming and basic data structure problem, leetcode medium difficulty.