Project Euler 622 - Riffle Shuffles

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