Amazon interview question

Implement itoa() functionality.