Solutions to HackerRank