https://oj.leetcode.com/problems/string-to-integer-atoi/