Pergunta de entrevista da empresa Bloomberg

leetcode question from their tagged - medium