problem 64 BigDecimal solution