Microsoft Interview Question

Implement atoi which converts a string to an integer.