Pergunta de entrevista da empresa Citadel Securities

leetcode easy to mid question