atoi - accepted solution