Jane Street interview question

Classic dice problem and a rubicks cube