Compute probabilities and expectations in random processes | Optiver Interview Question