Bloomberg interview question

Go check the leetcode questions.