FactSet interview question

write a c program for atoi.