Calculate dice game win probability | Jane Street Interview Question