Project Euler #112: Bouncy numbers