HackerRank Java BigDecimal problem solution - TheCScience