Submitting solution to Euler Question #49.