Pergunta de entrevista da empresa Citadel Securities

The final round interview was a consulting-esque question instead of a leetcode style question.