Jane Street Interview Question

30-sided dice problem.