Pergunta de entrevista da empresa Bloomberg

leetcode round - normal leet code questions. had 2 of these rounds. each round had 2 question