Solutions to programming puzzles on HackerRank.com