How would you solve the itoa problem while paying attention to boundary cases and handling of min values?