Project Euler 306 - Paper-strip Game

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