update ANOTHER SOLUTION of string-to-integer-atoi