Update Solution of atoi

prevent overflow even in a larger variable