Bloomberg interview question

may be a easy level leetcode problem intent classification in QA scenarios