Three piles of stones and the binary secret
Asked at Jane Street, Two Sigma, DRW
Three piles hold 3, 5, and 7 stones. Players alternate. On a turn you choose one pile and remove any positive number of stones from it. Whoever takes the last stone wins.
Does the first player win, and what is the winning move?
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.