HackerRank Currency Formatter