Capital One interview question

Easy algorithms using trees, lists, and designing a simple OOP structure.