Bloomberg interview question

One Leetcode coding question per round