LeetCode

Nim Game

Click here for an explanation.