A and B are playing a new game today . They form a tower of N coins and make a move in alternate turns . B being the God plays first . In one move player can remove 1 or X or Y coins from the tower . The person to make the last move wins the Game . Can you find out who wins the game ?
actually what I tried with recursion is tsking a bit longe ..... can any one suggest ,e witth dp soln of it