Solutions to HackerRank Problems