Jane Street Interview Question

Basic logic and statistic question.