Compute distribution of dice maximum | Quantedge Interview Question