Mental Model
Convert a string of characters into a number by reading each digit one by one and building the number step by step.
Analogy: Like reading a number written on a paper from left to right, and writing down the number digit by digit to get the full number.
""" Input string: ' -42abc' Positions: ↑ We start reading from the first non-space character, check sign, then read digits until non-digit. """
