Optiver interview question

Common dice and coin problems