Bloomberg interview question

Leetcode and hacker rank questions