Question d’entretien chez Jane Street

Optimization question - dice game (2 dices)