Computing expected value in a game of chance

Problem #2