Data Structure & Algorithm: Level-1 Problem #12. Nim Game
Nim Game is a mathematical game of strategy in which two players take turns removing (or "nimming") objects from distinct heaps or piles. On each turn, a player must remove at least one object,…