Project Euler Hackerrank Solution Sales