How to implement atoi

Difficulty 7
Helpful 5
Save 5
View 1231