3222-find-the-winning-player-in-coin-game

DevGod
Vtuber
/** * @param {number} x * @param {number} y * @return {string} */var losingPlayer = function(x, y) { let turn = false; while(x >= 1 && y >= 4){ x += -1; y += -4; turn = !turn; }
return !turn ? "Bob" : "Alice";};