PayPal interview question

Implement the atoi c function