HackerRank Day 6: Let's Review problem solution - TheCScience