Groupon interview question

Implement an atoi function