Alibaba Group Interview Question

Implement atoi in c