Apple interview question

write a function for atoi() in screen sharing