Pergunta de entrevista da empresa Jane Street

Basic logic and statistic question.