Goldman Sachs interview question

Dice roll probability, general CS algos