Pergunta de entrevista da empresa Optiver

One question on calculating the expectation value of a card game and then coding it up in Python using recursive functions