Code for HackerRank challenges.