Alice and Bob are playing a strange game usingcoins
Initially, Alice has x coins, and Bob has y coinsThey take turns choosing one of the followingoptions, starting with Alice:
1. Try to double it. With probability p (p <his/her coin gets doubled up, and with theremaining probability, he/she loses all the coinsand the game immediately.2. Pass to the next person. This literally meansdoing nothing in his/her turn. This operationcosts d coins and is only possible when he/shehas more than d coins
A player loses the game if he/she loses all his coinsDetermine the probability that Alice wins if bothplayers act optimally.