printIntegerInBase suggestion

Unfortunately, it prints the digits of the number in reverse order.