Solutions to problems on HackerRank