Compute expected value of simple gambling games | J.P. Morgan Interview Question