Project Euler Solutions Hackerrank Practice Java