Some solutions to hackerrank challenges.