atoi solution