solutions to hackerrank challenges