Find the player who wins the game by removing the last of given N cards | Function to check which player can win the game ; Driver code
function checkWinner ( N , K ) { if ( N % ( K + 1 ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; } } let N = 50 ; let K = 10 ; checkWinner ( N , K ) ;