G-Research Interview Question

dice toss problems