String to integer (atoi)

1.begin with white spaces, remove them.
2.pay attention to '+'.
3.after(1), it will begin with '+'/'-' or 0-9, other situations are all NA.
4.MAX_LEN/MIN_LEN out of range. Use long long to store result.