Question d’entretien chez Jane Street

Two math questions testing logic/probability