Bloomberg Interview Question

Leetcode Mediums + OOP design question