Pergunta de entrevista da empresa Bloomberg

Technical Leetcode style design question