If the next character is '+' or '-', set sign accordingly.
Iterate over the string and process digit characters:
a. If the current character is a digit, multiply result by 10 and add the digit.
b. Check for overflow/underflow and clamp the result if necessary.
If a non-digit character is encountered, break the loop.