Intel Corporation Interview Question

atoi function assumptions and implmention according to those assumptions