Pergunta de entrevista da empresa Citadel

Two probability question and one algorithm question