Hacker Rank Problem Solutions