Goldman Sachs Interview Question

Dice roll probability, general CS algos