FactSet Interview Question

write a c program for atoi.