Goldman Sachs interview question

How does atoi work?