Goldman Sachs Interview Question

How does atoi work?