Project Euler 301 - Nim

Official link: https://projecteuler.net/problem=301