Nomura Interview Question

standard c++ question, some dice problems (probability)