HackerRank warmup algorithms