Solutions to Hacker Rank Challenges