Project Euler 267 - Billionaire

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