Pergunta de entrevista da empresa Bloomberg

2 Leetcode medium difficulty within 1 hour