Microsoft interview question

Implement atoi() from C