Solutions to HackerRank problems.