Project Euler #198: Ambiguous Numbers