Jane Street Interview Question

Classic dice problem and a rubicks cube