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 price tag digit by digit and writing down the total price as a number in your notebook.
Input string: " -42abc" Positions: [0] [1] [2] [3] [4] [5] [6] Characters: ' ' '-' '4' '2' 'a' 'b' 'c' Pointer: ↑
