Bose interview question

Implement atoi in c language