Compute P(A>B) for m- and n-sided dice | Reddit Interview Question