Solve Exercise 3-4: itoa improved