Bloomberg interview question

Leetcode easy to medium questions