Vanguard Interview Question

Basic leetcode, some OOP principles