Project Euler Hackerrank Solution Cppd