here are the solutions to hackerrank programming problems version of project euler