More solutions to the HackerRank problems.