Bloomberg interview question

Software design coding question. Different from LeetCode/HackerRank.