HackerRank Day 24: More Linked Lists problem solution - TheCScience