HackerRank Java Currency Formatter problem solution - TheCScience