LendingTree Interview Question

Leetcode medium difficulty question, OOP principles, API design.