Project Euler 555 - McCarthy 91 Function

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