Solutions from Hacker Rank