Hacker Rank Algorithm Warmup