HackerRank Day 6: JavaScript Dates problem solution - TheCScience