Compute wallet-link probabilities and expectation | Coinbase Interview Question