HackerRank Java Date and Time problem solution - TheCScience