Solutions to HackerRank challenges.