Solutions to different HackerRank challenges